<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title><%= t 'app_name' %></title>
  <link rel="shortcut icon" href="/favicon.ico">
  <%= stylesheet_link_tag    'application' %>
  <%= content_for?(:head) ? yield(:head): '' %>

  <%= csrf_meta_tags %>
</head>
<body>

<%= render 'shared/navbar.html.haml' %>

<div class="container" style="min-height: 200px;">
  <% if notice.present? %>
    <div class="alert alert-info">
      <button type="button" class="close" data-dismiss="alert">
        <span aria-hidden="true">&times;</span>
        <span class="sr-only">Close</span>
      </button>
      <%= notice %></div>
  <% end %>
  <% if alert.present? %>
    <div class="alert alert-warning">
      <button type="button" class="close" data-dismiss="alert">
        <span aria-hidden="true">&times;</span>
        <span class="sr-only">Close</span>
      </button>
      <%= alert %></div>
  <% end %>

  <%= yield %>

</div>

<div class="container" style="margin-top: 20px; margin-bottom: 20px;">
  <div class="row">
    <div class="col-md-12">
      © <%= Date.current.year %>
      <a href="" data-container="body"
         data-trigger="hover"
         data-toggle="popover"
         data-content="<img src='<%= image_path "wechat.jpg" %>' style='width: 200px; height: 200px;'/>"
         data-html="true"
         data-placement="top"
      >关注微信号</a>
    </div>
  </div>
</div>

<%= javascript_include_tag 'application' %>

<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->

<%= content_for?(:javascript) ? yield(:javascript): '' %>

<!-- <%= GIT_VERSION[0..6] %> <%= Time.current.to_i %> -->
</body>
</html>
